package com.fenghao.subject.domain.convert;

import com.fenghao.subject.domain.entity.SubjectAnswerBO;
import com.fenghao.subject.infra.basic.entity.SubjectRadio;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * SubjectAnswerBO ——> SubjectRadio (Bean转换)
 */
@Mapper
public interface RadioSubjectConvert {

    RadioSubjectConvert INSTANCE = Mappers.getMapper(RadioSubjectConvert.class);

    SubjectRadio convertBoToRadioSubject(SubjectAnswerBO subjectAnswerBO);

    List<SubjectRadio> convertSubjectAnswerBoListToSubjectRadioList(List<SubjectAnswerBO> subjectAnswerBoList);


}
